#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtDeclarative/QDeclarativeView>
#include <QPaintEvent>
#include <QFocusEvent>
#include <phonon/videoplayer.h>
#include <phonon/VideoWidget>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    
protected :
    //void resizeEvent(QResizeEvent *e);
    void paintEvent(QPaintEvent* e);
    void focusInEvent(QFocusEvent *e);
private:
    Phonon::VideoPlayer* videoPlayer;
    Phonon::VideoWidget* videoWidget;

    QDeclarativeView* ui;
};

#endif // MAINWINDOW_H
